
//
//  ZhuZhuangTu.m
//  BezierDemo
//
//  Created by yuanjiang on 2017/12/14.
//  Copyright © 2017年 yuanjiang. All rights reserved.
//

#import "ZhuZhuangTu.h"
#import "ZZView.h"

@interface ZhuZhuangTu ()

/** */
@property(nonatomic,strong) ZZView *zzview;

/** x轴数据*/
@property(nonatomic,strong) NSArray *x_arr;

/** y轴数据*/
@property(nonatomic,strong) NSArray *y_arr;

@end

@implementation ZhuZhuangTu

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.zzview creatZhuZhuangTuWithXarr:self.x_arr Yarr:self.y_arr];
    [self.view addSubview:self.zzview];
}

-(ZZView *)zzview
{
    if (!_zzview) {
        _zzview = [[ZZView alloc] initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.width)];
        _zzview.backgroundColor = [UIColor lightGrayColor];
    }
    return _zzview;
}

-(NSArray *)x_arr
{
    if (!_x_arr) {
        _x_arr = @[@"北京", @"上海", @"广州", @"深圳", @"武汉", @"成都"];
    }
    return _x_arr;
}

-(NSArray *)y_arr
{
    if (!_y_arr) {
        _y_arr = @[@"66", @"70", @"90", @"60", @"40", @"77"];
    }
    return _y_arr;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
